package com.hrrt.home.dao.model;

import java.io.Serializable;

public class HomeBaseDevice implements Serializable {
    private Integer id;

    /**
     * 指令代码
     *
     * @mbg.generated
     */
    private String pid;

    /**
     * 设备名称
     *
     * @mbg.generated
     */
    private String text;

    /**
     * 区分类型
     *
     * @mbg.generated
     */
    private Integer parentId;

    private String name;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HomeBaseDevice other = (HomeBaseDevice) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getText() == null ? other.getText() == null : this.getText().equals(other.getText()))
            && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()));
    }

    @Override
    public String toString() {
        return "HomeBaseDevice{" +
                "id=" + id +
                ", pid='" + pid + '\'' +
                ", text='" + text + '\'' +
                ", parentId=" + parentId +
                ", name='" + name + '\'' +
                '}';
    }
}